<?php if(!isset($sidebar_modifier)){$sidebar_modifier="none";} ?>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title><?php echo $page_title ?> - Blueboard</title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width">
  <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/jquery-ui-1.8.21.custom.css">
  <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/style.css">
  <script src="<?php echo base_url(); ?>assets/js/libs/modernizr-2.5.2.min.js"></script>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
  <script>window.jQuery || document.write('<script src="<?php echo base_url(); ?>assets/js/libs/jquery-1.7.1.min.js"><\/script>')</script>
  <script src="<?php echo base_url(); ?>assets/js/libs/jquery.ui.timepicker.js"></script>
  <script src="<?php echo base_url(); ?>assets/js/script.js"></script>
</head>
<body>
  <!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->

<div class="wrapper<?php if ($sidebar_modifier=="Hide Left"){echo ' s_hl';}else if ($sidebar_modifier=="Hide Right"){echo ' s_hr';}else if ($sidebar_modifier=="Hide Both"){echo ' s_hb';}?>">

  <div id="navigation" class="row">
      <div id="logo"><a href="<?php echo base_url(); ?>"></a></div>
      <div id="primary-nav">
        <ul>
          <li<?php if ($page_title=="Dashboard"){echo ' class="sel"';}?>><a href="<?php echo base_url(); ?>">Dashboard</a></li>

          <?php if ( $this->user->is_logged() ) : ?>
            <li<?php if ($page_title=="Assessment"){echo ' class="sel"';}?>><a href="<?php echo site_url('assessment'); ?>">Assessment</a></li>
          <?php endif; ?>

          <?php if ( $this->user->is_logged() ) : ?>
            <li<?php if ($page_title=="My Account"){echo ' class="sel"';}?>><a href="<?php echo site_url('account'); ?>">My Account</a></li>
          <?php endif; ?>

          <?php if ( $this->user->is_administrator() ) : ?>
            <li<?php if ($page_title=="Administration"){echo ' class="sel"';}?>><a href="<?php echo site_url('admin'); ?>">Administration</a></li>
          <?php endif; ?>

          <?php if ( ! $this->user->is_logged() ) : ?>
            <li><a href="<?php echo site_url('welcome/login'); ?>">Login</a></li>
          <?php endif; ?>

        </ul>
      </div>
  </div>

  <div id="content">

    <div id="header">
      <div id="header_left"></div>
      <div id="header_right"></div>
      <h1 class="left"><span class="<?php if(isset($title_icon)) { echo $title_icon . '_icon'; } ?>"></span><?php echo $page_title ?></h1>
      <div class="welcome_message right">
        Welcome, <?php echo $this->session->userdata('name'); ?> (<a href="<?php echo site_url('welcome/logout'); ?>">Logout</a>)
      </div>
    </div>

    <div id="sub_header">

      <?php if ($sidebar_modifier!="Hide Left"&&$sidebar_modifier!="Hide Both"): ?><div class="left_col"><?php if (isset($left_sidebar_title)): ?><span class="<?php if(isset($left_sidebar_icon)) { echo $left_sidebar_icon . '_icon'; } ?>"></span><?php echo $left_sidebar_title; ?><?php endif ?></div><?php endif ?>

      <div class="center_col"><span class="<?php if(isset($content_icon)) { echo $content_icon . '_icon'; } ?>"></span><?php if(isset($content_title)) { echo $content_title; } ?></div>

      <?php if ($sidebar_modifier!="Hide Right"&&$sidebar_modifier!="Hide Both"): ?><div class="right_col"><?php if (isset($right_sidebar_title)): ?><span class="<?php if(isset($right_sidebar_icon)) { echo $right_sidebar_icon . '_icon'; } ?>"></span><?php echo $right_sidebar_title; ?><?php endif ?></div><?php endif ?>

    </div>

    <div class="content_container">
